//
//  BoxCostHeadView.m
//  XLDoctor
//
//  Created by longma on 2018/10/8.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import "MJUIShadowView.h"

@implementation MJUIShadowView


- (void)awakeFromNib{
    [super  awakeFromNib];
  
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    //设置阴影
    if(self.itemType == 1){

        [self mj_dropShadowWithOffset:CGSizeMake(0, 2)
                             cornerRadius:self.cornerRadius > 0 ? self.cornerRadius : 6
                                   radius:3
                                     color:[UIColor mj_colorWithHexString:@"#000000" alpha:0.16]
                                         opacity:1];
    }
}

@end
